package com.hancher.gamelife2.weather;

import androidx.room.Entity;
import androidx.room.Index;
import androidx.room.PrimaryKey;

import com.hancher.common.javautil.UuidUtil;

import lombok.Data;

/**
 * 描述 : 数据库实体类 <br/>
 * 时间 : 2023/12/2 11:48 <br/>
 * 作者 : Hancher ytu_shaoweijie@163.com
 */
@Entity(tableName = "weather", indices = {@Index(value = "uuid", unique = true)})
@Data
public class WeatherPO {

    @PrimaryKey
    Long id;
    String uuid = UuidUtil.getUuidNoLine();
    Long createTime = System.currentTimeMillis();
    Long updateTime = System.currentTimeMillis();
    Byte deleteflag = 0;

    //城市
    String cityCode;

    //当前天气
    String weatherNow;
    Long weatherNowUpdateTime;
    //小时天气
    String weatherHour;
    Long weatherHourUpdateTime;
    //15天天气
    String weatherDay;
    Long weatherDayUpdateTime;

}
